package com.yizhubao.app.activitys;

import android.os.Bundle;
import android.view.View;

import com.yizhubao.app.R;
import com.yizhubao.app.app.YZBApp;
import com.yizhubao.app.base.BaseActivity;
import com.yizhubao.app.utils.Constants;

import butterknife.OnClick;

/**
 * 创建人: PACY
 * 创建时间: 6/6/21 10:25 AM
 * 邮箱: pengwwe457621023@qq.com
 * 类描述: 账号被封
 */
public class AccountWantingActivity extends BaseActivity {
    boolean isExit=false;
    @Override
    protected int setContentLayout() {
        return R.layout.activity_account_wanting;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        Bundle bundle=getIntent().getExtras();
        if(bundle!=null){
            isExit=bundle.getBoolean("type");
        }
    }

    @OnClick(value = {R.id.commit_tv})
    public void click(View view){
        if(view.getId()==R.id.commit_tv){
            Bundle bundle=new Bundle();
            bundle.putString("title","联系客服");
            bundle.putString("url", Constants.LIANXIKEFU);
            startActivity(AccountWantingActivity.this, WebActivity.class,bundle);
        }
    }

    @Override
    public void onBackPressedSupport() {
        super.onBackPressedSupport();
        if(isExit){
            YZBApp.getInstance().exit();
        }
    }
}